import apibase from "@/api/apiBase";
import axios from "axios";

//省市区
export const $getAreaList = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/api/common/getAreaList',
    data: params,
    instance,
  });
}

//四级行政区域
export const $getForthArea= (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/common/forthArea',
    data: params,
    instance,
  });
}

//五级行政区域
export const $getFifthArea= (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/common/fifthArea',
    data: params,
    instance,
  });
}